//
//  WaimAppDelegate.m
//  Waim
//
//  Created by Joost van Dijk on 28-11-09.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//

#import "WaimAppDelegate.h"

@implementation WaimAppDelegate

@synthesize window;


- (void)applicationDidFinishLaunching:(UIApplication *)application {    
	tabBarController = [[UITabBarController alloc] init];
	NSMutableArray * viewControllers = [[NSMutableArray alloc] initWithCapacity:1];
	
	ContactsView * cvController = [[ContactsView alloc] init];
	UINavigationController * cvNavigation = [[UINavigationController alloc] initWithRootViewController:cvController];
	cvNavigation.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemContacts tag:1];
	[viewControllers addObject:cvNavigation];
	[cvController release];
	[cvNavigation release];
	
	[tabBarController setViewControllers:viewControllers animated:YES];
	
	[window addSubview:tabBarController.view];
    [window makeKeyAndVisible];
}


- (void)dealloc {
    [window release];
    [super dealloc];
}


@end
